POV-Ray : Newsgroups : povray.unofficial.patches : Transforming an object without transforming its texture : Re: Transforming an object without transforming its texture Server Time
2 Sep 2024 08:17:55 EDT (-0400)
  Re: Transforming an object without transforming its texture  
From: Ken
Date: 12 Mar 2000 09:20:29
Message: <38CBA6DA.C5C087D0@pacbell.net>
Nieminen Juha wrote:
> 
>   How hard would it be to make a patch which would allow transformating an
> object without transforming its texture (like the transformation were before
> the texture declaration)?
>   Sometimes you have something like this:
> 
> #declare MyObject = (complete object declaration here)
> 
> ...
> 
> object { MyObject translate whatever }
> 
>   Usually you want the texture to be translated with the object, but there
> may be some situations where you don't want the texture to be transformed
> with the object.
 
>   Or is this already possible?

I'm not sure I understand the problem. Instead of texturing MyObject
inside the object declaration add the texture when you use the object -

#declare MyObject = (object only declaration here)

...

object { MyObject translate whatever - add texture }

The above will result in the texture centered at the origin while the
object can be anywhere in your scene.

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.